<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"  xml:lang="en-gb">

    <head>			
        <title>Create your Greenwich Freecycle account</title>
        <meta name="author" content="na018" />
        <meta name="keywords" content="" />
        <meta name="description" content="create account" />
        <link href="" rel="stylesheet" />
    </head>
    <?php
    require_once 'C:\xampp\htdocs\GreenwichFreecycle\include\links.php';

    function setValue($inputValueToDisplay) {// see if you can replace this with the code in utility
        if (isset($_POST[$inputValueToDisplay])) {
            echo ($_POST[$inputValueToDisplay]);
        }
    }
    ?>

    <body>
        <div id = "page">
            <form action="<?php echo URLLIST?>" method="post" enctype="application/x-www-form-urlencoded">
                <p>
                    <label for="user_name">Enter your username</label>
                    <input type="text" maxlength="20" length="12"name="userName" id="user_name" value="<?php setValue('userName') ?>"/>
                    <br/>
                    <label for="user_email">Enter your email address</label>
                    <input type="text" maxlength="30" length="20" name="userEmail" id="user_email" value="<?php setValue('userEmail') ?>"/>
                    <br/>
                    <label for="user_postcode">Enter your postcode</label>
                    <input type="text" name="userPostcode" maxlength="7" id="user_postcode" value="<?php setValue('userPostcode') ?>"/>
                    <br />
                    <label for="user_password">Enter your password: </label>
                    <input type="password" name="userPassword" maxlength="16" length="12" id="user_password" value="<?php setValue('userPassword') ?>"/>
                    <br />
                    <br />
                    <input type="submit" value="submit" name="UserdetailButton" />
                    <br />

                </p>
            </form>
        </div>

    </body>

</html>